package com.hyst.model;

import java.io.Serializable;
import javax.persistence.*;

import lombok.Data;

import java.util.Date;


/**
 * The persistent class for the person_produce_real_view database table.
 * 
 */
@Data
@Entity
@Table(name="person_produce_real_view")
@NamedQuery(name="PersonProduceRealView.findAll", query="SELECT p FROM PersonProduceRealView p")
public class PersonProduceRealView implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column(name="bad_count")
	private int badCount;

	@Column(name="batch_code")
	private String batchCode;

	@Column(name="complete_count")
	private int completeCount;

	@Id
	private int id;

	@Column(name="plan_code")
	private String planCode;

	@Column(name="process_hours")
	private String processHours;

	@Column(name="product_name")
	private String productName;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="real_begin_time")
	private Date realBeginTime;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="real_finish_time")
	private Date realFinishTime;

	@Column(name="system_name")
	private String systemName;

	private String type;

	@Column(name="which_model")
	private String whichModel;

	@Column(name="worker_id")
	private String workerId;

}